CXX=g++
LD=g++
MV=mv
RM=rm -f
CFLAGS=-Wall -pedantic -Wno-long-long


all: mhr

#Graph, Solver, State, main.cpp

main.o: main.cpp Graph.h Solver.h State.h
	$(CXX) $(CFLAGS) -c -o main.o main.cpp

Graph.o: Graph.cpp Graph.h
	$(CXX) $(CFLAGS) -c -o Graph.o Graph.cpp

Solver.o: Solver.cpp Solver.h Graph.h State.h
	$(CXX) $(CFLAGS) -c -o Solver.o Solver.cpp


State.o: State.cpp State.h
	$(CXX) $(CFLAGS) -c -o State.o State.cpp

mhr: main.o Graph.o Solver.o State.o
	$(LD) -o mhr main.o Graph.o Solver.o State.o
	$(MV) *.o build
	$(MV) mhr dist

clean:
	$(RM) build/*
	$(RM) dist/*

